


<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
	<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
_callback = function() {
	location.href = ctx + "/manage/purchase/getSuppliers.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">供应商添加</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getSuppliers.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addSuppliers2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">供应商代码：</td>
		<td class="form_input"><input type="text" id="supplier_code" name="supplier_code" value="" /></td>
	
		<td class="form_title">所属地区：</td>
		<td class="form_input">
		<select id="region_id" name="region_id">
				<option value="" >请选择</option>
				 <c:forEach items="${regionsList}" var="d" varStatus="status">
					<option value="${d.id}">${d.region_code}[${d.region_name}]</option>
				</c:forEach>
		</select>
		</td>
		
		<td class="form_title">名称：</td>
		<td class="form_input"><input type="text" id="supplier_name" name="supplier_name" value="" /></td>
	</tr>
	<tr>
	    <td class="form_title">地址：</td>
		<td class="form_input"><input type="text" id="address" name="address" value="" /></td>
		<td class="form_title">联系人1：</td>
		<td class="form_input"><input type="text" id="linkman1" name="linkman1" value="" /></td>
	
		<td class="form_title">联系电话1：</td>
		<td class="form_input"><input type="text" id="phone1" name="phone1" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">联系人2：</td>
		<td class="form_input"><input type="text" id="linkman2" name="linkman2" value="" /></td>
	
		<td class="form_title">联系电话2：</td>
		<td class="form_input"><input type="text" id="phone2" name="phone2" value="" /></td>
		
		<td class="form_title">传真：</td>
		<td class="form_input"><input type="text" id="fax" name="fax" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">邮件：</td>
		<td class="form_input"><input type="text" id="email" name="email" value="" /></td>
		<td class="form_title"></td>
		<td class="form_input"></td>
		<td class="form_title"></td>
		<td class="form_input"></td>
	</tr>
	<tr>
		<td class="form_title">备注：</td>
		<td class="form_input" colspan="5"><textarea name="remark" style="width:99%" rows="2" id="remark"></textarea></td>
	</tr>
</table>
</form>
</body>
</html>
